<%- include("header")%>


  <!-- 巨幕开始 -->

  <div class="jumbotron jumbotron-bg mt-50">
    <div class="container">
      <div class="row">

        <div class="col-md-6">
          <h2 class="text-align-c">欢迎来到
            <img class="va-b" src="./img/logo.png" height="54" alt="">
          </h2>
          <h3 class="text-align-c">一个<span class="color-g">自由</span>、<span class="color-g">热情</span>和<span
              class="color-g">共享</span>的空间。
          </h3>
          <h4 class="mt-20 color-7 text-align-c">这是一块快乐分享的园地！任何你的奇思妙想都可以与大家共享！</h4>
          <p class="text-align-c">
            <a class="btn btn-primary btn-lg mt-40 fillet-30 b-w-196 background-color-p border-c-p" href="#"
              role="button">
              <i class="glyphicon glyphicon-pencil mr-10"></i>发表你的想法！</a></p>
        </div>

        <div class="col-md-6 hidden-xs hidden-sm">
          <img src="./img/featured.png" alt="">
        </div>
      </div>
    </div>
  </div>


  <!-- 巨幕结束 -->


  <!-- 热门文章开始 -->

  <div class="container hot-article">
    <h2>热门文章</h2>
    <div class="row">
      <div class="col-md-12 col-lg-8">
        <div class="hot-article-item">
          <!-- 轮播图开始 -->
          <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">

            <!-- Wrapper for slides 轮播图项 -->
            <div class="carousel-inner" role="listbox">
              <div class="item active" style="background-image:url(./img/article1.jfif);">
                <div class="carousel-caption">【Python】Django V2.X框架使用小技巧(二)</div>
              </div>
              <div class="item" style="background-image:url(./img/article2.jfif);">
                <div class="carousel-caption">Vue数据双向绑定的原理是什么？</div>
              </div>
              <div class="item" style="background-image:url(./img/article3.jpg);">
                <div class="carousel-caption">网站中缓存技术是什么？以Django为例轻松来学</div>
              </div>
            </div>

            <!-- Controls 轮播图的控制按钮-->
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
              <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
              <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
              <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
              <span class="sr-only">Next</span>
            </a>
          </div>
          <!-- 轮播图结束 -->
        </div>
      </div>

      <% for(var i = 0;i < 4;i++){ %>
      <div class="col-md-6 col-lg-4">
        <div class="hot-article-item">
          <div class="hot-article__img" style="background-image: url(./img/article2.jfif)"></div>
            <div class="hot-article__content">
              <div class="hot-article__title">
                让网页变成灰色？一行代码就够了！
              </div>
              <div class="hot-article__foot">
                <span class="tag">2021-09-13 15:27</span>
                <span>浏览(6)</span>
                <span>留言(1)</span>
              </div>
            </div>
        </div>
      </div>

      <% } %>
    </div>

  </div>

  <!-- 热门文章结束 -->

  <!-- 最新文章和最新评论开始 -->
  <div class="container">
    <div class="row">
      <div class="col-md-8 latest-article">
        <!-- 最新文章 -->
        <h2>最新文章</h2>

        <% for(var i = 0;i < 5;i++){ %>
        <a href="#" class="latest-article-item">
          <div class="container-fluid">
            <div class="row">
              <div class="col-sm-4">
                <div class="latest-article__img" style="background-image: url(./img/article1.jfif)"></div>
              </div>
              <div class="col-sm-8">
                <div class="latest-article__content">
                  <div class="latest-article__title">
                    网站中的缓存技术是什么？以Django为例轻松来学习！
                  </div>
                  <div class="latest-article__foot">
                    <span class="tag">2021-09-13 15:44</span>
                    <span>浏览(42)</span>
                    <span>留言(1)</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </a>
        <% } %>

        
        <!-- 分页器开始 -->
        <nav aria-label="...">
          <ul class="pager">
            <li><a href="#" class="glyphicon glyphicon-chevron-left"></a></li>
            <li><a href="">1</a></li>
            <li><a href="">2</a></li>
            <li><a href="">3</a></li>
            <li><a href="">4</a></li>
            <li><a href="#" class="glyphicon glyphicon-chevron-right"></a></li>
          </ul>
        </nav>
        <!-- 分页器结束 -->

      </div>

      <div class="col-md-4">
        <!-- 最新评论 -->
        <div class="latest-comment">
          <h2>最新评论</h2>

          <% [1,1,1,1].forEach(() =>{ %>
          <div class="latest-comment-item">
            <span class="latest-comment__avatar">
              <img src="./img/avatar1.png" />
            </span>
            <div class="latest-comment__content">
              <div class="latest-comment__header">
                <a class="latest-comment__author" href="#">xiaoming</a>
                <span class="latest-comment__date">2021-09-16 16:56</span>
              </div>
              <div class="latest-comment__text">
                <a href="/posts/6143063bf21f7a3480ffaff1">
                  <p>学习到了！</p>
                </a>
              </div>
            </div>
          </div>
         
          <% }) %>
        </div>

        <!-- 最新文章和最新评论结束 -->


        <!-- 热门博主 -->
        <div class="containerp-fluid hot-blogger">
          <h2>热门博主</h2>
          <div class="row">
            <!-- xs,md向上兼容 -->


            <% for(var i = 0;i < 6;i++){ %>
            <div class="col-xs-2 col-md-4">
              <a href="" class="hot-blogger-item">
                <img src="./img/avatar3.jpg" alt="">
              </a>
            </div>
            <% } %>
            


          </div>

        </div>

      </div>
    </div>
  </div>

<%- include("footer")%>


  <!-- bootstrap中的js文件 依赖于jquery 所以必须在之前放一个jquery的js文件 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
    integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous">
  </script>
</body>

</html>